<?php
/*
 * 模型类
 */
namespace core\lib;
use core\lib\conf;
class model extends \PDO{
    public function __construct() {
        $database = conf::all('database');
        try {
            parent::__construct($database['DSN'], $database['USERNAME'], $database['PASSWORD']);
        } catch (\PDOException $e) {
            p($e->getMessage());
        }
        
    }
}